package cn.whitecao.contentcenter.hello;

import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.AdviceModeImportSelector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ：腼腆的老黄.
 * @date ：Created in 2019-10-10 11:27
 */
public class HelloWorldConfiguarationSelector extends AdviceModeImportSelector<EnableHelloWorld> {
    @Override
    protected String[] selectImports(AdviceMode adviceMode) {
        return new String[]{Hello.class.getName()};
    }
    @Configuration
    public static class Hello {
        @Bean
        public void say(){
            System.out.println("Hello Hello");
        }
    }
}
